set(SOURCES "display/display.cc"
            "display/lcd_display.cc"
            "common/button.cc"
            "common/backlight.cc"
            "common/i2c_device.cc"
            "main.cc"
            "bsp_board.cc"
            "waveshare_lcd_146_board.cc"
            "audio_manager.cc"
            "wifi_manager.cc"
            "websocket_client.cc"
            "https_client.cc"
            "common/settings.cc"
            "otto_emoji_display.cc"
            )

set(INCLUDE_DIRS "." "display" "common")

set(requires
    driver
    esp_driver_i2s
    esp_timer
    nvs_flash
    esp_wifi
    esp_netif
    esp_websocket_client
    esp_http_client
    mbedtls
    emoji-gif-component
    )

idf_component_register(SRCS ${SOURCES}
                    INCLUDE_DIRS ${INCLUDE_DIRS}
                    REQUIRES ${requires}
                    WHOLE_ARCHIVE
                    )
